﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Model.Common;
using NHibernate;
using Model;

namespace MVCBBS.Controllers
{
    public class IndexController : Controller
    {
        //
        // GET: /Index/

        public ActionResult Index()
        {
            ISession session = NHSessionFactory.OpenSession();
            BBSUser user = session.QueryOver<BBSUser>().List().FirstOrDefault();
            ViewBag.Massage = user.BBSUserName;
            return View();
        }

    }
}
